//
//  Mediator+Loan.m
//  JinFuThree
//
//  Created by 爱尚 on 2018/8/29.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "Mediator+Loan.h"

NSString *const LoanTarget = @"LoanAction";
NSString *const LoanActionMainViewController = @"mainViewController";

NSString *const LoanActionGoodsDetailViewController = @"loanDetailViewController:";

@implementation Mediator (Loan)

-(UIViewController*_Nullable)Loan_mainViewController{
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:LoanTarget actionName:LoanActionMainViewController];
    return [self performWithOptions:options];
}

-(nonnull UIViewController*)Loan_applyViewController:(nonnull NSString *)loanId{
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:LoanTarget actionName:LoanActionGoodsDetailViewController];
    options.parameters = @{@"loanId": loanId};
    return [[Mediator sharedInstance] performWithOptions:options];
    
}


@end
